/**
 * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
 */

CKEDITOR.editorConfig = function( config ) {
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
	
	config.font_names='宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;微软雅黑/微软雅黑;'+ config.font_names;
	config.removePlugins = 'elementspath';//去除左下角元素路径
	config.resize_enabled = false;
	config.enterMode = CKEDITOR.ENTER_BR;//ENTER键，使用<br>换行
	config.shiftEnterMode = CKEDITOR.ENTER_P;//SHINFT+ENTER键，使用<p>换行
	config.extraPlugins = 'html5video,lineheight,multiimg';
	config.fontSize_sizes ='三号/21px;' + config.fontSize_sizes;
	//config.filebrowserImageUploadUrl = apigateway+'workflow/wfBusiAttach/uploadBodyPicture';//设置提交上传图片按钮处理URL
	config.image_previewText = '预览区域可实时查看图文排列效果，您可通过直接输入互联网图片URL、浏览系统图册选择图片、本地上传图片三种方式插入图片到正文内容中，并支持设置图片宽度、高度、边框、水平间距、垂直间距、对齐方式属性。'; // 图片信息面板预览区内容的文字内容，默认显示CKEditor自带的内容
	config.removeDialogTabs = 'image:advanced;image:Link;link:advanced;link:target;'; // 移除图片上传页面的'高级','链接'页签
	config.tabSpaces = 4;    
	config.protectedSource.push( /<\s*iframe[\s\S]*?>/gi ) ; // <iframe> tags.               //一下是后天验证非法数据
	config.protectedSource.push( /<\s*frameset[\s\S]*?>/gi ) ; // <frameset> tags.
	config.protectedSource.push( /<\s*frame[\s\S]*?>/gi ) ; // <frame> tags.
	config.protectedSource.push( /<\s*script[\s\S]*?\/script\s*>/gi ) ; // <SCRIPT> tags.
	config.protectedSource.push( /<%[\s\S]*?%>/g ) ; // ASP style server side code
	config.protectedSource.push( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code
	config.protectedSource.push( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ;
};
